import request from '@/utils/request'

const api_name= `/admin/cmn/dict`

export default {
  //根据dictcode获取下级节点
  findByDictCode(dictCode) {
    return request({
      url:`${api_name}/findByDictCode/${dictCode}`,
      methods: 'get'
    })
  },
  //根据数据id查询子数据列表
  findByParentId(id) {
    return request({
      url:`${api_name}/findChildData/${id}`,
      methods: 'get'
    })
  },
}
